package numberFive;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ResourceBundle;

public class NumberFive {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        ResourceBundle resourceBundle=ResourceBundle.getBundle("config");
        String className = resourceBundle.getString("className");
        Class<?> aClass = Class.forName(className);
        String name = aClass.getName();
        Object o = aClass.getDeclaredConstructor().newInstance();
        Method run = aClass.getDeclaredMethod("run");
        run.invoke(o);
    }
}
